\documentclass[a4papar,landscape]{article}

\usepackage{multicol}
\columnsep=10pt
\columnseprule=1pt

\usepackage{amsmath}

\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{xeCJK}
\setCJKmainfont{WenQuanYi Zen Hei}
\setmonofont{DejaVu Sans Mono}
\setsansfont{DejaVu Sans Mono}
\usepackage[colorlinks=true,linkcolor=black]{hyperref}


\usepackage{setspace}
\topmargin=-1.0in
\evensidemargin=-0.25in
\oddsidemargin=-0.25in
\textwidth=10.0in
\textheight=7.5in
\headsep=0.25in
\usepackage{titlesec}
\titlespacing{\section}{0pt}{3pt}{0pt}
\titlespacing{\subsection}{0pt}{1pt}{0pt}
\titlespacing{\subsubsection}{0pt}{1pt}{0pt}


\usepackage{listings}
\lstset{
	language=C++,
	basicstyle=\ttfamily \footnotesize,
	numberstyle=\it\scriptsize\sffamily,
	keywordstyle=\bfseries,
	identifierstyle=,
	commentstyle=\color{gray},
	stringstyle=,
	showstringspaces=false,
%	frame=single,
	tabsize=4,
%	numbers=left,
%	numbersep=2pt,
}

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{titlepage}
\begin{center}
	\textsc{} \\[2.0cm]
	 
	\textsc{\LARGE Tsinghua Univertisy} \\[1.0cm]

	\textsc{\huge  ACM/ICPC World Final 2014 Reference} \\[2.5cm]

	{\Huge \bfseries NowOrNever} \\[2cm]

	\Large
	\begin{minipage}{0.4\textwidth}
	\begin{flushleft}
		\emph{Coach:}\\
		Xiaojun \textsc{Wu}
		\newline
		\newline
	\end{flushleft}
	\end{minipage}	
	\begin{minipage}{0.4\textwidth}
	\begin{flushright}
		\emph{Gamers:} \\
		Qinshi \textsc{Wang} \\
		Lijie \textsc{Chen} \\
		Qiwei \textsc{Feng} \\
	\end{flushright}
	\end{minipage}

	\vfill

	{\large \today}
\end{center}
\end{titlepage}


\begin{multicols}{2}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{计算几何}

	\subsection{2D-圆}
		\lstinputlisting{codes/geo/2d-circle.h}
	\subsection{2D-多边形与凸包}
		\lstinputlisting{codes/geo/2d-polygon.h}
	\subsection{3D-基础操作}
		\lstinputlisting{codes/geo/3d-basic.h}
	\subsection{3D-旋转}
		\lstinputlisting{codes/geo/3d-rotate.h}
	\subsection{Delaunay}
		\lstinputlisting{codes/geo/delaunay.java}
	%\subsection{3D-$O(n^2)$凸包}
		%\lstinputlisting{codes/geo/3d-convex.h}

\section{数据结构}

	\subsection{动态树}
		\lstinputlisting{codes/ds/dynamic-tree.h}

\section{图论}

	\subsection{任意图匹配(带花树)}
		\lstinputlisting{codes/graph/blossom.cpp}
	\subsection{Dinic}
		\lstinputlisting{codes/graph/dinic.h}
	\subsection{Hopcroft}
		\lstinputlisting{codes/graph/hopcroft.h}
	\subsection{SAP}
		\lstinputlisting{codes/graph/sap.cpp}
	\subsection{Directed MST}
		\lstinputlisting{codes/graph/directed-mst.cpp}

\section{数学}

	\subsection{行列式计算}
		\lstinputlisting{codes/math/det.h}
	\subsection{质数测试(OLD!!)}
		\lstinputlisting{codes/math/factors.h}
	\subsection{高精度乘法(Karatsuba)}
		\lstinputlisting{codes/math/multiply-kara.h}
	\subsection{高精度乘法(FFT)}
		\lstinputlisting{codes/math/multiply-fft.h}
	\subsection{快速矩阵乘法(Strassen) [abstract]}
		\lstinputlisting{codes/math/mat-mul.txt}
		%Want
		%\begin{equation*}
			%\begin{pmatrix} C_1 & C_2 \\ C_3 & C_4 \end{pmatrix}
			%=
			%\begin{pmatrix} A_1 & A_2 \\ A_3 & A_4 \end{pmatrix}
			%\begin{pmatrix} B_1 & B_2 \\ B_3 & B_4 \end{pmatrix}.
		%\end{equation*}
		%Let
		%\begin{equation*} \begin{split}
			%M_1 &= ( \\
			%M_2 &= b \\
		%\end{split} \end{equation*}


\section{其他}

	\subsection{后缀自动机}
		\lstinputlisting{codes/others/sam.cpp}

	\subsection{Dancing Links [TODO!!!]}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{multicols}
\end{document}
